﻿using KZ.Express.Resource;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KZ.Express.ENT
{
    public enum Objects
    {
        Customer = 1,
        CustomerGroup = 2,
        OriginalPriceList = 3,
        CustomerPriceList = 4,
        Zone = 5,
        Account = 6,
        Role = 7,
        LoginAccount = 8,
        MenuOrder = 9,
        Statistic = 10,
        CheckPrice = 11,
        Logs = 12
    }

    public class ObjectENT : EntityBase
    {
        [Output]
        public int ObjectID { get; set; }

        [Require]
        public string ObjectName { get; set; }

        public string Order { get; set; }

        public string ObjectType { get; set; }

        [NotInsertUpdate]
        public override string Table { get { return "Objects"; } }

        /// <summary>
        /// proc_Object_Select
        /// </summary>
        [NotInsertUpdate]
        public override string SelectProcedure { get { return "proc_Object_Select"; } }
    }
}
